Creating SQL Scripts from the NHibernate Designer

To create SQL scripts from the NHibernate designer:

NHibernate Designer generates the SQL script and displays it in Visual Studio. You can save this SQL script to the folder of your choice.

Choosing the Generation Settings

Before you first generate a SQL script, you need to choose the target database type; optionally, you can also choose a database instance from which NHibernate will work out the current version. To do this:

If you subsequently need to change the migration settings, choose the Change button again and re-run the wizard.